package com.zlp.member.dao;

import com.zlp.member.entity.UserDo;
import com.zlp.member.entity.UserTokenDo;

import java.util.Map;

/**
* Created by Mybatis Generator on 2019/04/01
*/
public interface UserTokenDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserTokenDo record);

    int insertSelective(UserTokenDo record);

    UserTokenDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserTokenDo record);

    int updateByPrimaryKey(UserTokenDo record);
    /**
     *  根据登入类型和用户ID
     * @param paraMap
     * @return
     */
    UserTokenDo selectByUserIdAndLoginType(Map<String,Object> paraMap);
    /**
     *  根据token修改不可用状态
     * @param token
     * @return
     */
    int updateTokenAvailability(String token);

    UserTokenDo getInfo(String token);
}